
/*
* 输入管理器;
*/
class InputManager{
    private static _instance:InputManager;
    constructor(){

    }

    public static get instance():InputManager
    {
        if(!this._instance)
        {
            this._instance = new InputManager();
        }
        return this._instance;
    }

    public init():void
    {
        Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown)
    }

    private onMouseDown(e:Laya.Event):void
    {
        let pos:Laya.Point = SceneManager.instance.getMousePos();
        SelfPlayer.instance.moveTo(pos)
    }
}